﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Manage_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        table tr
        {
            height: 35px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Literal ID="ErrorText" runat="server"></asp:Literal>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="failureNotification" ValidationGroup="ChangePasswordValidationGroup" />
    <table width="100%">
        <tr>
            <td style="width:150px;text-align:right;">原密码：</td>
            <td><asp:TextBox ID="OldText" runat="server" TextMode="Password" Width="200px" /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入原密码。" Text="*" ToolTip="请输入原密码。" ControlToValidate="OldText" ValidationGroup="ChangePasswordValidationGroup" CssClass="failureNotification"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align:right;">新密码：</td>
            <td><asp:TextBox ID="NewText" runat="server" TextMode="Password" Width="200px"  /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入新密码。" Text="*" ToolTip="请输入新密码。" ControlToValidate="NewText" ValidationGroup="ChangePasswordValidationGroup" CssClass="failureNotification"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="text-align:right;">再次输入新密码：</td>
            <td><asp:TextBox ID="ConfirmText" runat="server" TextMode="Password" Width="200px"  /><asp:CompareValidator
                    ID="CompareValidator1" runat="server" ErrorMessage="两次输入的密码不一致。" 
                    ControlToCompare="NewText" ControlToValidate="ConfirmText" 
                    CssClass="failureNotification" ToolTip="两次输入的密码不一致。" 
                    ValidationGroup="ChangePasswordValidationGroup">*</asp:CompareValidator></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center"><asp:Button ID="SaveButton" Text="保存" 
                    runat="server" ValidationGroup="ChangePasswordValidationGroup" 
                    onclick="SaveButton_Click" /></td>
        </tr>
    </table>
</asp:Content>